package com.wootion.cims.module.basicinformation.plotsetting.service;

import com.wootion.cims.module.basicinformation.plotsetting.model.PlotMessage;
import com.wootion.cims.module.systemsetting.polt.model.SysPlot;
import com.wootion.cims.response.ResponseResult;

import javax.servlet.http.HttpServletRequest;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: jack
 * @Date: 2022/12/02/14:51
 * @Description:
 */
public interface PlotSettingService {

    /**
     * 根据条件查询小区信息
     * @param condition
     * @param page
     * @param limit
     * @return
     */
    ResponseResult list(String condition,Integer page,Integer limit);
    /**
     * 根据小区id查询小区的楼栋信息，单元信息，和平房/别墅信息
     * @param id
     * @return
     */
    ResponseResult find(String id);
    /**
     *添加楼栋
     * @param plotMessage
     * @return
     */
    ResponseResult saveBuilding(PlotMessage plotMessage);
    /**
     *修改楼栋
     * @param plotMessage
     * @return
     */
    ResponseResult updateBuilding(PlotMessage plotMessage);
    /**
     *删除楼栋
     * @param plotMessage
     * @return
     */
    ResponseResult deleteBuilding(PlotMessage plotMessage);
    /**
     * 新增单元
     * @param plotMessage
     * @return
     */
    ResponseResult saveUnit(PlotMessage plotMessage);
    /**
     * 修改单元
     * @param plotMessage
     * @return
     */
    ResponseResult updateUnit(PlotMessage plotMessage);
    /**
     * 删除单元
     * @param plotMessage
     * @return
     */
    ResponseResult deleteUnit(PlotMessage plotMessage);
    /**
     * 添加平房/别墅
     * @param plotMessage
     * @return
     */
    ResponseResult saveVilla(PlotMessage plotMessage);
    /**
     * 修改平房/别墅
     * @param plotMessage
     * @return
     */
    ResponseResult updateVilla(PlotMessage plotMessage);
    /**
     * 删除平房、别墅区域
     * @param plotMessage
     * @return
     */
    ResponseResult deleteVilla(PlotMessage plotMessage);
    /**
     * 更新保存用户修改之后的小区信息
     * @param sysPlot
     * @return
     */
    ResponseResult updateSave(SysPlot sysPlot, HttpServletRequest request);
}
